<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Cart extends Model
{
    //
    protected $table = 'cart';
	protected $primaryKey = 'cart_id';
	
	
    public function getSelectedAttribute($value){
        if($value==1){
        	return TRUE;
        }
		return FALSE;
    }
	
	public function getKeyNameAttribute($value){
		if($value){
			return $value;
		}
		return "";
	}
	
}
